<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <script src="static/js/vue.js"></script>
        <script src="static/js/vue-router.js"></script>
        <script src="static/js/axios.min.js"></script>
    </head>
    <body>
        <div id="app">
            <form action="" method="" @submit.prevent="submit">
                <input type="text" name="name" v-model="inputtext.name">
                <input type="password" name="password" v-model="inputtext.password">
                <input type="submit" value="提交">
            </form>
        </div>
    </body>
</html>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            inputtext: {}
        },
        methods: {
            submit: function() {
                console.log(this.inputtext);
            }
        }

    })
</script>
